package com.yxinsur.imc.business.events.listener;

import com.yxinsur.imc.business.events.event.SysOrgCreateEvent;
import com.yxinsur.imc.business.events.event.TenantCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class SysOrgCreateEventListener implements ApplicationListener<SysOrgCreateEvent> {
    @Async
    @Override
    public void onApplicationEvent(SysOrgCreateEvent event) {
        System.out.println("组织信息录入成功：" + event.getSysOrg().toString()+",信息提示为:"+event.getMsg());
    }
}
